package com.best.oasis.settlement.common.enum.audit
{
	import mx.collections.ArrayCollection;
	import mx.resources.ResourceManager;
	import mx.resources.IResourceManager;
	
	/**
	 * 审核动作
	 * @author BL00064
	 * 
	 */	
	public class AuditAction
	{
		/**
		 * 审核通过 
		 */		
		public static const APPROVE:String = "APPROVE";
		/**
		 * 拒绝 
		 */		
		public static const REJECT:String = "REJECT";
		
		/**
		 * 返回全部的code,label，供combobox的dataprovider使用。
		 * 
		 */
		public static function generateComboBoxDataProvider(isShowAll:Boolean = true):ArrayCollection{
			var result:ArrayCollection = new ArrayCollection();
			var prefix:String = 'AuditAction_';
			
			result.addItem( {data: null, label: ResourceManager.getInstance().getString("messages", "Status_All")} );

			var list:Array = [APPROVE, REJECT];
			for each(var item:String in list){
				result.addItem( {data: item, label: ResourceManager.getInstance().getString("messages", prefix + item)} );
			}
			return result;
		}
		
		
		public function AuditAction()
		{
		}

	}
}